<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>usbpsu: xusb_class_composite.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">usbpsu
   </div>
   <div id="projectbrief">Vitis Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="pages.html"><span>Examples</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xusb__class__composite_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xusb_class_composite.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><p>This file contains the implementation of the composite device specific class code for the example. </p>
<pre>
  MODIFICATION HISTORY:</pre><pre>  Ver   Who  Date     Changes
</p>
<hr/>
<p>
  1.0   rb   05/03/18 First release
  1.5   vak  13/02/19 Added support for versal
  1.5   vak  03/25/19 Fixed incorrect data_alignment pragma directive for IAR</pre><pre>*</pre> </div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ad1d69266191044d7d27c63bd7c049b7c"><td class="memItemLeft" align="right" valign="top">s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__class__composite_8c.html#ad1d69266191044d7d27c63bd7c049b7c">Usb_DfuSetState</a> (struct dfu_if *DFU, u8 dfu_state)</td></tr>
<tr class="memdesc:ad1d69266191044d7d27c63bd7c049b7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function handles setting of DFU state.  <a href="#ad1d69266191044d7d27c63bd7c049b7c">More...</a><br/></td></tr>
<tr class="separator:ad1d69266191044d7d27c63bd7c049b7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ad7bb0798660879a761038133bf0b80"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__class__composite_8c.html#a4ad7bb0798660879a761038133bf0b80">USB_DfuSetDwloadState</a> (struct dfu_if *DFU, u8 *status)</td></tr>
<tr class="memdesc:a4ad7bb0798660879a761038133bf0b80"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function updates the current state while downloading a file.  <a href="#a4ad7bb0798660879a761038133bf0b80">More...</a><br/></td></tr>
<tr class="separator:a4ad7bb0798660879a761038133bf0b80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ade58346ca33654f5138ee9c443610d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__class__composite_8c.html#a3ade58346ca33654f5138ee9c443610d">USB_DfuGetStatus</a> (struct dfu_if *DFU, u8 *status)</td></tr>
<tr class="memdesc:a3ade58346ca33654f5138ee9c443610d"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function handles getting of DFU status.  <a href="#a3ade58346ca33654f5138ee9c443610d">More...</a><br/></td></tr>
<tr class="separator:a3ade58346ca33654f5138ee9c443610d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a194a9e11a6d5b86e53384260e2f1a90b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__class__composite_8c.html#a194a9e11a6d5b86e53384260e2f1a90b">Usb_DisconnectHandler</a> (struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *InstancePtr)</td></tr>
<tr class="memdesc:a194a9e11a6d5b86e53384260e2f1a90b"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function handles USB disconnect, called from driver.  <a href="#a194a9e11a6d5b86e53384260e2f1a90b">More...</a><br/></td></tr>
<tr class="separator:a194a9e11a6d5b86e53384260e2f1a90b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5e188c4250382b042768893417ab321"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__class__composite_8c.html#af5e188c4250382b042768893417ab321">Usb_ResetHandler</a> (struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *InstancePtr)</td></tr>
<tr class="memdesc:af5e188c4250382b042768893417ab321"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function handles USB reset, called from driver.  <a href="#af5e188c4250382b042768893417ab321">More...</a><br/></td></tr>
<tr class="separator:af5e188c4250382b042768893417ab321"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd0aa2711cb840f03df965a2c16dfebf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__class__composite_8c.html#acd0aa2711cb840f03df965a2c16dfebf">Usb_SetIntf</a> (struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *InstancePtr, SetupPacket *SetupData)</td></tr>
<tr class="memdesc:acd0aa2711cb840f03df965a2c16dfebf"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function handles set interface request.  <a href="#acd0aa2711cb840f03df965a2c16dfebf">More...</a><br/></td></tr>
<tr class="separator:acd0aa2711cb840f03df965a2c16dfebf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b5c88f60ef35c935fbaf5cf42228318"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__class__composite_8c.html#a7b5c88f60ef35c935fbaf5cf42228318">Usb_StorageClassReq</a> (struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *InstancePtr, SetupPacket *SetupData)</td></tr>
<tr class="memdesc:a7b5c88f60ef35c935fbaf5cf42228318"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function is class handler for Mass storage and is called when Setup packet received is for Class request(not Standard Device request)  <a href="#a7b5c88f60ef35c935fbaf5cf42228318">More...</a><br/></td></tr>
<tr class="separator:a7b5c88f60ef35c935fbaf5cf42228318"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1371377fb6f75a25c4964644525e7f66"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__class__composite_8c.html#a1371377fb6f75a25c4964644525e7f66">Usb_KeyboardClassReq</a> (struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *InstancePtr, SetupPacket *SetupData)</td></tr>
<tr class="memdesc:a1371377fb6f75a25c4964644525e7f66"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function is class handler for HID and is called when Setup packet received is for Class request(not a Standard Device request)  <a href="#a1371377fb6f75a25c4964644525e7f66">More...</a><br/></td></tr>
<tr class="separator:a1371377fb6f75a25c4964644525e7f66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32b6f95139e55ff73c71303408094577"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__class__composite_8c.html#a32b6f95139e55ff73c71303408094577">Usb_ClassReq</a> (struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *InstancePtr, SetupPacket *SetupData)</td></tr>
<tr class="memdesc:a32b6f95139e55ff73c71303408094577"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function is class request handler for composite device Setup packet received is for Class request(not a Standard Device request)  <a href="#a32b6f95139e55ff73c71303408094577">More...</a><br/></td></tr>
<tr class="separator:a32b6f95139e55ff73c71303408094577"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a787b860ced36f781523ab445c3f0f1e9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__class__composite_8c.html#a787b860ced36f781523ab445c3f0f1e9">ParseCBW</a> (struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *InstancePtr, struct storage_if *f)</td></tr>
<tr class="memdesc:a787b860ced36f781523ab445c3f0f1e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function handles Reduced Block Command (RBC) requests from the host.  <a href="#a787b860ced36f781523ab445c3f0f1e9">More...</a><br/></td></tr>
<tr class="separator:a787b860ced36f781523ab445c3f0f1e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b339129f8d97ba9e8fd4cde9bc8e756"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__class__composite_8c.html#a3b339129f8d97ba9e8fd4cde9bc8e756">SendCSW</a> (struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *InstancePtr, struct storage_if *f, u32 Length)</td></tr>
<tr class="memdesc:a3b339129f8d97ba9e8fd4cde9bc8e756"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function is used to send SCSI Command Status Wrapper to Host.  <a href="#a3b339129f8d97ba9e8fd4cde9bc8e756">More...</a><br/></td></tr>
<tr class="separator:a3b339129f8d97ba9e8fd4cde9bc8e756"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a787b860ced36f781523ab445c3f0f1e9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParseCBW </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct storage_if *&#160;</td>
          <td class="paramname"><em>f</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function handles Reduced Block Command (RBC) requests from the host. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to <a class="el" href="struct_usb___dev_data.html" title="struct Usb_DevData - Application device data Application Data ">Usb_DevData</a> instance of the controller. </td></tr>
    <tr><td class="paramname">f</td><td>is a pointer to storage interface</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>Referenced by <a class="el" href="xusb__freertos__class__composite_8h.html#a3dd6b88879ee439db086e2ff6a7664d9">prvSCSITask()</a>.</p>

</div>
</div>
<a class="anchor" id="a3b339129f8d97ba9e8fd4cde9bc8e756"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SendCSW </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct storage_if *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function is used to send SCSI Command Status Wrapper to Host. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is pointer to <a class="el" href="struct_usb___dev_data.html" title="struct Usb_DevData - Application device data Application Data ">Usb_DevData</a> instance. </td></tr>
    <tr><td class="paramname">Length</td><td>is the data residue.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None </dd></dl>

<p>Referenced by <a class="el" href="xusb__freertos__class__composite_8h.html#a787b860ced36f781523ab445c3f0f1e9">ParseCBW()</a>, and <a class="el" href="xusb__freertos__class__composite_8h.html#a3dd6b88879ee439db086e2ff6a7664d9">prvSCSITask()</a>.</p>

</div>
</div>
<a class="anchor" id="a32b6f95139e55ff73c71303408094577"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Usb_ClassReq </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SetupPacket *&#160;</td>
          <td class="paramname"><em>SetupData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function is class request handler for composite device Setup packet received is for Class request(not a Standard Device request) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is pointer to <a class="el" href="struct_usb___dev_data.html" title="struct Usb_DevData - Application device data Application Data ">Usb_DevData</a> instance. </td></tr>
    <tr><td class="paramname">SetupData</td><td>is pointer to SetupPacket received.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="xusb__class__composite_8c.html#a1371377fb6f75a25c4964644525e7f66">Usb_KeyboardClassReq()</a>, and <a class="el" href="xusb__class__composite_8c.html#a7b5c88f60ef35c935fbaf5cf42228318">Usb_StorageClassReq()</a>.</p>

</div>
</div>
<a class="anchor" id="a3ade58346ca33654f5138ee9c443610d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void USB_DfuGetStatus </td>
          <td>(</td>
          <td class="paramtype">struct dfu_if *&#160;</td>
          <td class="paramname"><em>DFU</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8 *&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function handles getting of DFU status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">DFU</td><td>is a pointer to DFU instance of the controller </td></tr>
    <tr><td class="paramname">status</td><td>is the pointer of the DFU status</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="xusb__class__audio__dfu_8c.html#a4ad7bb0798660879a761038133bf0b80">USB_DfuSetDwloadState()</a>.</p>

</div>
</div>
<a class="anchor" id="a4ad7bb0798660879a761038133bf0b80"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void USB_DfuSetDwloadState </td>
          <td>(</td>
          <td class="paramtype">struct dfu_if *&#160;</td>
          <td class="paramname"><em>DFU</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8 *&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function updates the current state while downloading a file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">DFU</td><td>is a pointer to DFU instance of the controller </td></tr>
    <tr><td class="paramname">status</td><td>is a pointer of the DFU status</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

</div>
</div>
<a class="anchor" id="ad1d69266191044d7d27c63bd7c049b7c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">s32 Usb_DfuSetState </td>
          <td>(</td>
          <td class="paramtype">struct dfu_if *&#160;</td>
          <td class="paramname"><em>DFU</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>dfu_state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function handles setting of DFU state. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">DFU</td><td>is a pointer to DFU instance of the controller </td></tr>
    <tr><td class="paramname">dfu_state</td><td>is a value of the DFU state to be set</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>- XST_SUCCESS if the function is successful.<ul>
<li>XST_FAILURE if an Error occurred.</li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

</div>
</div>
<a class="anchor" id="a194a9e11a6d5b86e53384260e2f1a90b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Usb_DisconnectHandler </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function handles USB disconnect, called from driver. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to <a class="el" href="struct_usb___dev_data.html" title="struct Usb_DevData - Application device data Application Data ">Usb_DevData</a> instance of the controller</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_usb___dev_data.html#a35624c7f1dbe7a05bd61f4abf44d5cd8">Usb_DevData::PrivateData</a>.</p>

</div>
</div>
<a class="anchor" id="a1371377fb6f75a25c4964644525e7f66"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Usb_KeyboardClassReq </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SetupPacket *&#160;</td>
          <td class="paramname"><em>SetupData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function is class handler for HID and is called when Setup packet received is for Class request(not a Standard Device request) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is pointer to <a class="el" href="struct_usb___dev_data.html" title="struct Usb_DevData - Application device data Application Data ">Usb_DevData</a> instance. </td></tr>
    <tr><td class="paramname">SetupData</td><td>is pointer to SetupPacket received.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_usb___dev_data.html#a35624c7f1dbe7a05bd61f4abf44d5cd8">Usb_DevData::PrivateData</a>.</p>

<p>Referenced by <a class="el" href="xusb__class__composite_8c.html#a32b6f95139e55ff73c71303408094577">Usb_ClassReq()</a>.</p>

</div>
</div>
<a class="anchor" id="af5e188c4250382b042768893417ab321"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Usb_ResetHandler </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function handles USB reset, called from driver. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to <a class="el" href="struct_usb___dev_data.html" title="struct Usb_DevData - Application device data Application Data ">Usb_DevData</a> instance of the controller</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_usb___dev_data.html#a35624c7f1dbe7a05bd61f4abf44d5cd8">Usb_DevData::PrivateData</a>.</p>

</div>
</div>
<a class="anchor" id="acd0aa2711cb840f03df965a2c16dfebf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Usb_SetIntf </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SetupPacket *&#160;</td>
          <td class="paramname"><em>SetupData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function handles set interface request. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to <a class="el" href="struct_usb___dev_data.html" title="struct Usb_DevData - Application device data Application Data ">Usb_DevData</a> instance of the controller </td></tr>
    <tr><td class="paramname">SetupData</td><td>is a pointer to setup token of control transfer</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_usb___dev_data.html#a35624c7f1dbe7a05bd61f4abf44d5cd8">Usb_DevData::PrivateData</a>, <a class="el" href="xusb__wrapper_8c.html#ab30ae0bb64c54e1ab61239c495a453d3">SetEpInterval()</a>, and <a class="el" href="xusb__class__audio__dfu_8c.html#ad1d69266191044d7d27c63bd7c049b7c">Usb_DfuSetState()</a>.</p>

</div>
</div>
<a class="anchor" id="a7b5c88f60ef35c935fbaf5cf42228318"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Usb_StorageClassReq </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SetupPacket *&#160;</td>
          <td class="paramname"><em>SetupData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function is class handler for Mass storage and is called when Setup packet received is for Class request(not Standard Device request) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is pointer to <a class="el" href="struct_usb___dev_data.html" title="struct Usb_DevData - Application device data Application Data ">Usb_DevData</a> instance. </td></tr>
    <tr><td class="paramname">SetupData</td><td>is pointer to SetupPacket received.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_usb___dev_data.html#a35624c7f1dbe7a05bd61f4abf44d5cd8">Usb_DevData::PrivateData</a>.</p>

<p>Referenced by <a class="el" href="xusb__class__composite_8c.html#a32b6f95139e55ff73c71303408094577">Usb_ClassReq()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
	<p class="footer">&copy; Copyright 2015-2022 Xilinx, Inc. All Rights Reserved.</p>
	<p class="footer">&copy; Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.</p>
</div>
</body>
</html>
